package com.catering.mapper;

import com.catering.pojo.DOrderinformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DOrderinformationMapper {
    List<DOrderinformation> findAll();

    List<DOrderinformation> take();
    
    /**
     * 批量添加订单项信息
     * 
     * @param orderItems 订单项集合
     * @return 影响行数
     */
    int insertBatchOrderItems(@Param("list") List<DOrderinformation> orderItems);
}
